import time

from PIL import ImageGrab

if __name__ == '__main__':
    start = time.time()

    im = ImageGrab.grab()
    im.save('12.png')

    end = time.time()

    print("cost:", (end - start))
